
#include "point.h"

Point::Point() {
    ID = 0;
    anchor_full = false;
    anchor_half = false;

    x = 0;
    y = 0;
    extX = 0;
    extY = 0;
}

int Point::getID() {return ID;}
void Point::setID(int val) {ID = val;}

double Point::getX() {return x;}
double Point::getY() {return y;}
void Point::setX(double val) {x = val;}
void Point::setY(double val) {y = val;}

bool Point::getAnchorFull() {return anchor_full;}
void Point::setAnchorFull() {
    anchor_full = true;
    anchor_half = false;
}
bool Point::getAnchorHalf() {return anchor_half;}
void Point::setAnchorHalf() {
    anchor_half = true;
    anchor_full = false;
}
bool Point::getAnchor() {return anchor_full || anchor_half;}
void Point::setNoAnchor() {
    anchor_half = false;
    anchor_full = false;
}

double Point::getExtX() {return extX;}
void Point::setExtX(double val) {extX = val;}
double Point::getExtY() {return extY;}
void Point::setExtY(double val) {extY = val;}

void Point::draw() {}

